package com.woniu.service.impl;


import com.woniu.dao.CarManagerDao;
import com.woniu.dao.ClientMortgageInfoDao;
import com.woniu.entity.ClientMortgageInfo;
import com.woniu.service.ClientMortgageInfoService;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ClientMortgageInfoServiceImpl implements ClientMortgageInfoService {
    @Resource
    @Qualifier("clientMortgageInfoDao")
    ClientMortgageInfoDao clientMortgageInfoDao;

    @Override
    public ClientMortgageInfo findHouseId(Integer id) {
        return clientMortgageInfoDao.findHouseId(id);
    }

    @Override
    public ClientMortgageInfo findCarId(Integer id) {
        return clientMortgageInfoDao.findCarId(id);
    }
}
